package com.yeban.javase.day05;

import java.util.Scanner;

/**
 * @Desc TODO
 * @Author yeban
 * @Date 2025/10/13
 */
public enum EnumTest1 {

    WORD(0), PPT(1), EXCEL(2), XMIND(3);

    int num;

    EnumTest1(int num) {
        this.num = num;
    }

    public int getNum() {
        return num;
    }

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        System.out.println("请输入开档选择(0-3)：");
        int n = sc.nextInt();

        for (EnumTest e : EnumTest.values()) {
            if (e.getNum() == n) {
                System.out.println("你的开档选择是：" + e.name());
            }
        }

    }
}
